//
//  MyOTTypeView.m
//  ShangHaiHuDongApp
//
//  Created by ZJ on 2017/6/20.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import "MyOTTypeView.h"
#import "ZJOrganizationSelectView.h"
@interface MyOTTypeView ()
/** 机构选择框 */
@end


@implementation MyOTTypeView

- (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title
{
    self = [super initWithFrame:frame title:title];
    if (self) {
        [self addSubview:self.organizationSelectView];
        
    }
    return self;
}


- (void)setDelegate:(id<ZJOrganizationSelectViewDelegate>)delegate{
    _delegate = delegate;
    self.organizationSelectView.delegate = delegate;
}

#pragma mark - Getters
- (ZJOrganizationSelectView *)organizationSelectView{
    if (_organizationSelectView == nil){
        _organizationSelectView = [[ZJOrganizationSelectView alloc] initWithFrame:CGRectMake(self.titleLabel.x, self.titleLabel.bottom, self.width - 2 * self.titleLabel.x, 44 * [UIScreen zj_screenHScale]) ];
    }
    return _organizationSelectView;
}
@end
